package com.boot.notes.event;

import org.springframework.context.ApplicationEvent;

/**
 * 下单后的Event事件
 *
 * @Description:
 * @Author: mkq
 * @Date: 2021/10/8 14:27
 **/
public class OrderEvent extends ApplicationEvent {
    
    private String message;

    private String moblie;

    private Long userId;

    public OrderEvent(Object source, String message, String moblie, Long userId) {
        super(source);
        this.message = message;
        this.moblie = moblie;
        this.userId = userId;
    }

    public OrderEvent(String message, String moblie, Long userId) {
        super(new Object());
        this.message = message;
        this.moblie = moblie;
        this.userId = userId;
    }

    public OrderEvent() {
        super(new Object());
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMoblie() {
        return moblie;
    }

    public void setMoblie(String moblie) {
        this.moblie = moblie;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
